class Ba:

    def test(self):
        print('爸爸的基因')

class Ma:

    def test2(self):
        print('妈妈的基因')

class My(Ba,Ma):  # 继承Ba和Ma

    def test3(self):
        pass


my = My()
my.test()
my.test2()
print(My.__mro__)


